using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Text;
using DAL;
namespace BLL
{
    class BLLManager
    {
        internal static IDataReader ExecGetDRAllSP(string tableName)
        {
            return DAL.ACDB.ExecGetDRAllSP("AC_GetAll" + tableName);
        }
        internal static DataSet ExecGetDSAllSP(string tableName, params object[] list)
        {
            return DAL.ACDB.ExecGetDSAllSP("AC_GetAll" + tableName,list);
        }
        internal static int ExceInsertToSP(string tableName,params object[] list)
        {
            return DAL.ACDB.ExecNoQuery("AC_InsertTo" + tableName,list);
        }
        internal static int ExceDeleteSP(string tableName, params object[] list)
        {
            return DAL.ACDB.ExecNoQuery("AC_Delete" + tableName, list);
        }
        internal static IDataReader ExecGetDRRandomSP(string tableName, params object[] list)
        {
            return DAL.ACDB.ExecGetDRRandomSP("AC_GetRadom" + tableName, list);
        }

    }
}
